--
-- Author: ping.wang
-- Date: 2018-11-21 13:38:20
--
local GameDB = import(".GameDB")

--通过ID来获得相关数据
function GameDB:getDBMById(id)
	return self:getCachedValue("tips_dbm", id)
end

--通过战斗ID获得这种战斗的所有的dbm-----
function GameDB:getDBMsByBattleId(battleId)
	local dbmConfig = self:getCachedValues("tips_dbm",
    function(v)
        return tonumber(v.battleID) == tonumber(battleId)
    end)
	return dbmConfig
end


return GameDB